File management system of image data

ABSTRACT

In a system for file managing image data of an electronic camera, so long as the image data is recorded by the same image pickup apparatus, a peculiar file name which is not overlapped is generated and in order to prevent that a plurality of files of the same name exist, when an electronic camera is connected to a main body of a computer, a storage device in the electronic camera is examined from a host application of the computer, and when a file of a file name including numerical values exceeding a predetermined value is found, a message is displayed for the user in a manner such that after all of the files having the file names which had automatically been formed were transferred to the computer, all of the contents in the storage device are deleted or formatted. When the detachable storage device is loaded or a power source is turned on, if the file having the unique file name which was automatically generated does not exist in the storage device, the numerical values held in the electronic camera are initialized.

This application is a division of application Ser. No. 08/949,531, filedOct. 14, 1997.

BACKGROUND OF THE INVENTION

1. Field of the Invention

In an image pickup apparatus such as an electronic camera or the like,the invention relates to a file management system of an image pickupapparatus such that in case of storing recording image data as a fileinto a storage device, even if a storage medium is exchanged, so long asthe data is recorded by the same image pickup apparatus, a peculiar filename is automatically formed for a recording image.

2. Related Background Art

Hitherto, in case of recording an image onto a recording medium by anelectronic camera, although it is necessary to allocate a name to a fileof the image, a method whereby a number to be updated everyphotographing operation is included in the file name has been proposed.In such an apparatus, however, when the recording medium is exchanged,the number included in the file name of the image is reset. Therefore,there is a case where a plurality of files of the same name exist.

Since a conventional file management system of image data is constructedas mentioned above, there are the following problems.

That is, in the case where the file name is formed as mentioned above,when it is intended to transfer data from the storage device of theelectronic camera to a computer, there is a possibility such that filesof the same name also exist in an auxiliary storage device of thecomputer. In such a case, the user has to take a procedure such that thefile existing in the auxiliary storage device of the computer isoverwritten or, since the same file name exists, a message to instructto change the file name is displayed, or the like.

Although the number of file names which can be formed is determined bythe number of digits of numerical values which are included in the filename, in case of forming a file while sequentially including a series ofnumerical values, for example, starting from 0 among numerical values offive digits into the file name, the number of numerical values which canbe used is equal to 100000 within a range from “00000” to “99999”.Therefore, file names exceeding 100000 cannot be formed. In order toavoid such a limitation, for example, there is a method of returning thenumerical values included in the file name to the original numericalvalues in a manner such that, for instance, the file name which isformed subsequently to “IMG99999. JPG” is set to “IMG00000. JPG”. Inthis case, however, if the file of “IMG00000. JPG” still exists in thestorage device, the file which has originally existed will beoverwritten.

Since numerical values to be included in the file name are determined byexamining the file names of the files existing in the recording mediumto record data, in the case where the recording medium is exchangeable,the file of the same file name is formed on a plurality of recordingmedia.

SUMMARY OF THE INVENTION

It is an object of the invention to solve the problems as mentionedabove.

Another object of the invention is to provide a file management systemof image data, in which a peculiar file name which is not overlapped canbe allocated so long as it is recorded by the same image pickupapparatus, thereby making it possible to prevent a situation that aplurality of files of the same name exist.

A file management system of image data according to one aspect of theinvention is constructed as follows.

(1) A file management system for managing photographed image data asfiles comprises a counter for updating a numerical value every imagerecording and generating means for generating a file name on the basisof the numerical value of the counter, wherein when the recording imagedata is stored as a file, even in case of recording all of the imagedata photographed by a same image pickup apparatus onto differentrecording media, an individual file name which is not overlapped isformed when they are recorded by the same image pickup apparatus.

(2) In the above system of (1), when the numerical value of the counterlies within a preset range, a warning and a predetermined method oftaking a countermeasure are displayed.

(3) In the system of (2), the numerical values are sequentially includedin the file name in accordance with the order from the smaller numericalvalue, the numerical values included or the numerical value to be nextincluded are stored into the counter, and a preset range is set equal toor more than a predetermined value based on the stored numerical value.

(4) In the system of (2), the numerical values are sequentially includedin the file name in accordance with the order from the larger numericalvalue, the numerical values included or the numerical value to be nextincluded are stored into the counter, and the preset range is set equalto or less than a predetermined value based on the stored numericalvalue.

(5) In the system of (2), when the numerical value of the counter lieswithin the preset range and the file formed before does not exist in astorage device in which the file is formed, the numerical value of thecounter is initialized.

(6) In any one of the systems of (2) to (4), the predetermined method oftaking a countermeasure is to delete the file to which the file name wasallocated among the files included in the storage device serving as atarget.

(7) In any one of the systems of (2) to (4), the predetermined method oftaking a countermeasure is to format the storage device serving as atarget.

The above and other objects and features of the present invention willbecome apparent from the following detailed description and the appendedclaims with reference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an explanatory diagram showing an equipment construction of anembodiment;

FIG. 2 is a block diagram showing a system construction of theembodiment;

FIG. 3 is a block diagram showing a system construction of an electroniccamera in the embodiment;

FIGS. 4A, 4B, 4C and 4D are flowcharts showing the operation when amemory card is inserted into the electronic camera;

FIG. 5 is a flowchart showing the operation when data is stored into thememory card in the electronic camera;

FIG. 6 is a flowchart showing the operation of an exception process whenthe memory card is inserted into the electronic camera;

FIG. 7 is a flowchart showing the operation of an exception process in ahost application of the electronic camera;

FIG. 8 is a diagram showing the relation between numerical valuesincluded in a file example and numerical values included in a directoryname in which they have been stored; and

FIG. 9 is a diagram showing a structure of files which are formed by theelectronic camera in the embodiment.

DESCRIPTION OF THE PREFERRED EMBODIMENT

FIG. 1 is a diagram showing an equipment construction of an embodimentof the invention and shows a constructional example of a personalcomputer system including an electronic camera (image pickup apparatus)as a platform.

In FIG. 1, reference numeral 1 denotes a main body of a computer; 2 adisplay for displaying data; 3 a mouse serving as a typical pointingdevice; 4 a mouse button; 5 a keyboard for inputting and outputting; and6 an interface for connecting an electronic camera 7 to the computer. Ageneral interface such as bidirectional parallel interface, SCSIinterface, or the like which can transmit an image at a high speed isused as an interface 6.

FIG. 2 is a block diagram showing a construction of a file managementsystem including software and hardware according to the embodiment. Inthe diagram, reference numeral 19 denotes hardware; 15 an operatingsystem (hereinafter, abbreviated to “OS”) which operates on the hardware19; and 14 application software which operates on the OS 15.

Blocks which are not directly necessary when explaining the embodimentalthough they are obviously included as component requirements among theblocks constructing the hardware 19 and OS 15 are not shown. As examplesof the blocks which are not shown, there are a CPU and a memory ashardware and a memory management system and the like as OSs.

In FIG. 2, reference numeral 25 denotes a hard disk to physically storea file or data, and 18 indicates a file system constructing the OS 15and having a function for enabling the application software 14 to inputand output the file without being aware of the hardware 19.

Reference numeral 24 denotes a disk IO interface for allowing the filesystem 18 to perform the reading and writing operations of the hard disk25, and 17 indicates a drawing management system constructing the OS 15and having a function for enabling the application software 14 to drawwithout being aware of the hardware 19.

Reference numeral 23 denotes a video interface for allowing the drawingmanagement system 17 to draw onto a display, and 16 indicates an inputdevice management system constructing the OS 15 and having a functionfor enabling the application software 14 to receive an input of the userwithout being aware of the hardware 19.

Reference numeral 20 denotes a keyboard interface for allowing the inputdevice management system 16 to receive an input of the keyboard 5, and22 indicates a mouse interface for enabling the input device managementsystem 16 to receive an input from the mouse 3.

The electronic camera 7 is connected to a bidirectional interface 26, anSCSI interface, or the like and can transmit and receive image data orthe like through the input device management system 16.

Reference numeral 11 denotes an electronic camera host application; 12 adata management unit for managing the image data by attributeinformation or by a keyword or the like which is inputted by the user;and 13 a data display unit for displaying the managed image data.

In the system, the image data from the electronic camera 7 istransferred to a computer or the transferred image data is registeredinto the image data management system 11 by the electronic camera hostapplication 11.

FIG. 3 is a block diagram showing a system construction of theelectronic camera 7. Blocks which are not directly necessary whenexplaining the embodiment although they are obviously included in thecomponent requirements are not shown.

In FIG. 3, an image pickup unit 31 includes a lens and a CCD andgenerates a photographed image as image data (JPG data). The imagepickup unit 31 also simultaneously forms thumbnail image data as areduction image of the photographed image.

In the electronic camera 7 in the system, not only the image isphotographed but also an audio sound can be recorded and is outputted asrecording data (WAVE data) by a recording unit 32. An auxiliary storagedevice 33 is used to store data from the image pickup unit 31 andrecording unit 32 as a file. In this system, a memory card correspondingto PCMCIA as a detachable recording medium is used as an auxiliarystorage device 33.

Reference numeral 34 denotes an interface when connecting the electroniccamera 7 and the computer. The interface 34 is connected to thebidirectional parallel/SCSI interface 26 in FIG. 2. A general interfacesuch as bidirectional parallel interface, SCSI interface, or the like isused as an interface 34 in a manner similar to the interface 26.

Reference numeral 35 denotes a control unit constructing file nameforming means. The control unit 35 controls the operation of the wholeelectronic camera. Reference numeral 36 denotes a file number thresholdmemory for holding the maximum value of the normal values among thenumerical values included in the file. In this system, when numericalvalues exceeding this numerical value are included in the file name,some exception process is executed, thereby preventing the overlappedfile name from being formed after the numerical values were circulatedonce.

Reference numeral 37 denotes a current file number counter serving as anonvolatile memory to hold the numerical values included in the filename that is subsequently formed. An initial value (which is set at thetime of shipping of the electronic camera 7 from a factory) of thecurrent file number is equal to 1. Therefore, even if the on/offoperation of a power source of the electronic camera 7, an exchange ofthe memory card, or the like is executed, the file name which isgenerated bygone electronic camera 7 in a lifetime is fundamentallyunique and peculiar name which is not overlapped.

A rule of naming a file name and a directory name in the system will nowbe described.

In the system of the embodiment, in order to automatically form theunique file name, numerical values of five digits are included in a partof the file name. In this instance, it is assumed that the numericalvalues to be included are fundamentally sequentially increased from 1each time the file is formed. When the numerical values which are formedare equal to or larger than the values stored in the file numberthreshold memory 36, the exception process is executed.

In the embodiment, the numerical values of 99900 have been stored in thefile number threshold memory 36. The numerical values of 99900 arenumerical values for providing an allowance of up to 99999 as a maximumvalue of decimal number of five digits and are not limited to them. Forexample, there is no problem in case of 99000. By setting the filenumber threshold value with a certain allowance, even if the file nameincluding the numerical values exceeding this threshold value is formed,a situation that an inconvenience immediately occur can be avoided.

The files are classified into subdirectories every predetermined numberof files in accordance with the numerical values included in the filename. The file name of the subdirectory is also automatically formed andstored into the storage device.

In the system, the subdirectory to store the files formed by theelectronic camera 7 starts from “CTG” like “CTG10100” and subsequentlyhas a file name of eight characters comprising decimal number of fivedigits. Explanation will now be made on the assumption that the decimalnumber of five digits is set to the directory number and the directoryfor storage is set to a CTG directory.

The CTG directory is arranged under a “DC” subdirectory under the routedirectory in the auxiliary storage device 33.

A name of the file of image and audio data which is formed by theelectronic camera 7 is constructed by a file name of eight charactersand an extension of three characters. In the system, alphanumericalcharacters of three characters from the head of the file name to storethe image data are fixedly set to “AUT”. Similarly, head threecharacters of the file name of the thumbnail image are fixedly set to“THM” and three characters from the head of the file name of the audiodata are fixedly set to “SND”.

For example, in case of the image data, the file name is “AUT10100.JPG”. In case of the thumbnail data, the file name is “THM10100. JPG”.In case of the audio data, the file name is “SND10100. WAV”. Asmentioned above, each file name is expressed by three characters, thedecimal number of five digits, and the extension of three characters. Inthe following description, the decimal number of five digits is set tothe file number.

In this system, the image files or audio files having the same filenumber are treated as a group of data and are set to an object. That is,the file names of the same file number are included in one object. Forexample, the file name of the thumbnail image data for the image data ofthe file name “AUT10100. JPG” is “THM10100. JPG”. When there is audiodata, its file name is “SND10100. WAV”. Those three files construct oneobject. In the system of the embodiment, each time one object is formed,the value of the current file number counter 37 is increased by 1.

In the system, in order to handle the object as one data unit, in caseof deleting data, it is performed on an object unit basis. In case ofdeleting the object from the camera 7 or the host application of thecomputer, if there is an attribute of protect (or ReadOnly) even in oneof the files included in the object, such an object cannot be deleted.

In the system, the number (kNumObjInDir) of objects included in one CTGdirectory has been predetermined. Further, a directory number (dirNo) ofthe CTG directory in which the object in which the file having a certainfile number (fileNo) is included exists is determined by an equation (A)in FIG. 8. FIG. 9 shows a constructional example of directories andfiles formed by the camera 7 in accordance with this rule.

A forming method of the file name and a deciding method and a formingmethod of the CTG directory to store the file name in the system of theembodiment will now be described.

In the system, MS-DOS of Microsoft Co., Ltd. is used as a disk operatingsystem to manage the file structure of the memory card serving as astorage device of the electronic camera 7.

Processes which are executed when the memory card serving as a storagemedium is inserted into the electronic camera 7 or when the power sourceof the electronic camera 7 is turned on will now be described withreference to flowcharts of FIGS. 4A and 4B.

First, a check is made in step S1 to see if the card inserted into theelectronic card 7 is normal. If it is not normal, in order to notify theuser of such a fact, a warning message is displayed in step S18 and theprocessing routine is finished. The card which is not normal indicates acard such that the electronic camera 7 cannot read the contents of thecard or the like. In case of the normal card, step S2 follows.

In step S2, the file structure in the memory area of the card isexamined and a check is made to see if the file of the file name “DC”exists in the route directory. If the file of such a file name exists,since the directory of the same name cannot be formed, step S18 followsand a message to notify the user of the reason is displayed on a displayapparatus and the processes are finished. When the file of the name “DC”does not exist in the route directory, step S3 follows.

In step S3, a check is made to see if the directory of the name “DC”exists in the route directory. In the system, data such as image data oraudio data which is generated by the electronic camera is stored in thedirectory of the name “DC” as a subdirectory of the route directory.Such a directory is called a DC directory in the following description.

When the DC directory does not exist, step S17 follows and a DCdirectory is formed. After that, the processing routine advances to stepS19. When the DC directory exists, step S4 follows.

In step S4, the contents in the DC directory are examined. When a spaceCTG directory exists, it is deleted. The space CTG directory denotes adirectory in which none of the file and directory exists therein.

In step S5, a check is made to see if the CTG directory exists in the DCdirectory. If it does not exist, step S19 follows.

Step S19 relates to a process which is executed when the CTG directorydoes not exist as a subdirectory of the DC directory. That is, it is aprocess which is executed in the case where the card just after it wasformatted by the camera 7 or the host application or the camera whichwas all erased (Erase All) is inserted into the electronic camera 7.

The current file number which is stored into the current file numbercounter 37 of the electronic camera 7 is compared with the file numberthreshold value recorded in the file number threshold memory 36. Whenthe current file number exceeds the file number threshold value, aprocess in step S20 is executed in order to perform an exception process(1), which will be explained hereinlater. After that, the processingroutine advances to step S21 and the CTG directory in which the currentdirectory number is set to the directory number is formed. The processesare finished.

The current directory number is obtained by substituting the currentfile number for the file number of the equation (A) in FIG. 8. Even inthe following description, the current directory number indicates thedirectory number which is obtained by substituting the current filenumber at that time point for the equation (A) in FIG. 8.

In step S5, when one or more CTG directories exist in the DC directory,the processing routine advances to step S6.

In step S6, a directory entry starting from “CTG” is searched from thedirectory entries in the DC directory. The directory entry having themaximum directory number is obtained from them and such a value isstored into a maximum directory number dirNoFound as a variable.

In step S7, a check is made to see if something having the namecorresponding to the maximum directory number dirNoFound obtained instep S6 is a file or a directory. In case of the directory, step S12follows. In case of the file, step S8 follows and the value of themaximum directory number dirNoFound is increased by 1. Subsequently, acheck is made in step S9 to see if the resultant value exceeds the upperlimit directory number.

The upper limit directory number is obtained by substituting 99999 as anupper limit among possible values as a file number for the file numberfileNo in the equation (A) in FIG. 8. If the maximum directory numberdirNoFound is larger than this value, an error message is displayed instep S18 and the processes are finished. If it is not larger, theprocessing routine advances to step S10.

In step S10, a check is made to see if the CTG directory in which themaximum directory number dirNoFound obtained in step S8 is set to thedirectory number exists. When it does not exist, a CTG directory isformed in step S11.

In step S12, a check is made to see if the current directory numbercurrDirNo is larger than the maximum directory number dirNoFound bycomparing them. When it is larger, a CTG directory in which the currentdirectory number is set to the directory number is formed in step S23.When it is smaller, the processing routine advances to step S13.

In step S13, the contents in the directory in which the maximumdirectory number dirNoFound is equal to the directory number areexamined. A file having the maximum file number among the files includedin the directory is obtained and stored into the maximum file numberfileNoFound. In this instance, when the file does not exist in thedirectory, the minimum value among the possible values which can be setinto the file number fileNo when the directory number dirNoFound in anequation (B) in FIG. 8 is substituted is set.

In step S14, the maximum file number obtained in step S13 is comparedwith the current file number. When the current file number is larger,step S15 follows. If NO, the processing routine advances to step S16.

In step S15, the current file number is changed to the value obtained byadding 1 to the maximum file number. The current directory number isupdated by the equation (A) in FIG. 8 on the basis of the resultantvalue.

In step S16, a check is made to see if a CTG directory in which thecurrent directory number is set to the directory number exists. When itexists, the processes are finished. When it does not exist, a CTGdirectory corresponding to the current directory number is formed instep S21 and the processing routine is finished.

By the above processes, the setting of the CTG directory to store thedata which is generated by the camera when the card is inserted into thesystem and the setting of the current file number included in the filename to be subsequently formed are executed.

When the formatted card or the EraseAll card is inserted, if thecurrent/file number is larger than the file number threshold value, thecurrent file number is initialized to 1. In this case, since no objectought to certainly exist in the memory card, a situation such that thenew data is stored by the same file name as the file which hasoriginally existed and the inherent data which has originally existed islost is prevented.

A case of storing the data generated by the camera 7 into the card willnow be described with reference to a flowchart shown in FIG. 5.

First, in step S31, data to be recorded is stored as a file into thestorage device. The file number at this time is a current file numberand the directory number of the CTG directory in which the file isstored is obtained from the current file number by the equation (A) inFIG. 8.

In step S32, the current file number is increased by 1 and the currentdirectory number is obtained on the basis of the resultant value.

In step S33, a check is made to see if the directory corresponding tothe current directory number exists in the DC directory. When it hasalready existed, the processing routine is finished. When it does notexist, in step S34, a directory in which the directory number is set tothe current directory number is formed and the processes are finished.

The above exception process will now be described. In the system, bystoring the current file number into the camera 7, the file name whichis generated by one camera is made unique. As mentioned above, however,since the file name is made up of the file number comprisingalphanumerical characters of three characters and the decimal number offive digits and the extension of three characters like “AUT10100. JPG”,the last (maximum) values which can be used as a file number are equalto 99999.

Hitherto, when the current file number exceeds such a value, the cameradisplays an error and does not operate or simply initializes the filenumber to 0 and newly forms a file irrespective of a fact that the fileof the file number 0 exists. In the embodiment, therefore, the followingprocesses are executed as exception processes so as to prevent thecamera from entering such a situation.

(1) First, in the case where the current file number stored in thecamera 7 is equal to or larger than 99999 as a file number thresholdvalue and no CTG directory exists in the card, the value of the currentfile number is initialized to 1.

(2) When the card having the file whose file number is equal to orlarger than 99900 is found in the host application, all of the files aretransferred from the card to the computer and, after that, a message topromote the user to delete all of the CTG directories by a cardformatting process or the like is displayed.

The above first exception process (1) is executed when the card isinserted or when the power source of the electronic camera is turned onwith the card inserted. This process is executed when the current filenumber exceeds the preset file number threshold value (99900) in thecamera. If the CTG directory does not exist in the card, the currentfile number is initialized in the camera sole body. This processcorresponds to the process in step S20 in FIG. 4B.

The second exception process (2) is executed when the computer intendsto read the card. When the file in which a value that is equal to orlarger than the file number threshold value set in the camera 7 is setto the file number exists, a warning message is displayed, therebypromoting the user to delete all of the CTG directories in the card.After that, when the card is again inserted into the camera or the powersource is again turned on, the exception process (1) in step S20 in theflowchart described in FIG. 4B is executed and the current file numberis reset to 1.

By the above operation, even if the file number is overlapped andformed, a situation that the data is lost by overwriting the file can beavoided.

The operation of the above exception process will now be described withreference to a flowchart.

FIG. 6 shows the operation of the first exception process (1) which isexecuted by the electronic camera 7 and corresponds to the process instep S20 in FIG. 4B.

First, the card inserted in the camera 7 is examined in step S41 to seeif the CTG directory exists. If it does not exist, the current filenumber is reset to 1 in step S42.

FIG. 7 shows the operation of the second exception process (2) which isexecuted when the camera 7 is connected to the computer. This process isexecuted by the host application.

First in step S51, a check is made to see if a CTG directory storing thefile whose file number is equal to or larger than the file numberthreshold value exists. The file number threshold value is obtained fromthe camera 7. The directory number of the CTG directory to be examinedhere is obtained by substituting the file number threshold value for thefile number in the equation (A) in FIG. 8. When it does not exist, theexception process (2) is finished. When it exists, the processingroutine advances to step S52.

Step S52 is a process which is executed when the current file numberexceeds the file number threshold value. In this case, a warning messageand a message showing a method of taking a countermeasure are displayedto the user.

By the above two exception processes, by setting the file numberthreshold value to a value smaller than the maximum value among thepossible values as a file number so as to have an allowance, if the filehaving the file number exceeding the file number threshold value exists,the warning message and the method of taking the countermeasure areshown by the host application. Since the file number threshold value issmaller than the possible values of the file number, even in a situationsuch that the file number has to exceed the file number threshold value,the camera 7 can be used for a little while (until the file number isequal to the maximum value among the possible values) without anyinconvenience.

In the system of the embodiment as mentioned above, by holding thenumerical values into the nonvolatile counter to store the numericalvalues which are included into the name of the file that is formed bythe electronic camera 7, the file name which is generated by one camera7 becomes unique in its lifetime. When the numerical values arecirculated once and are initialized, even in the case where the value ofthe counter is unavoidably initialized and the same file name has to beformed, a data loss which is caused by overwriting and storing into thefile which originally has existed by the same name can be prevented.

Although, in the above-described embodiment, a warning is given when thefile number exceeds the upper limit of the file number, the presentinvention is not limited to this embodiment. It may be also possible tomonitor whether the directory number exceeds an upper limit valuethereof. As an example of this case, the step S19 shown in FIG. 4B maybe changed to a step S19′ shown in FIG. 4C to monitor whether thecurrent directory number exceeds 99900 or not. In this connection, thedirectory threshold value 99900 may be stored in a nonvolatile memory ofthe camera. Alternately, it may be possible that the value 4995001obtained from the first expression of the equation (B) in FIG. 8 withsubstitution of 99900 of the directory number, is stored in thenonvolatile memory of the camera as the file number threshold value andthen substituted into the equation (A) in FIG. 8 to calculate thedirectory threshold value. In the latter case, as shown in a step S19″of FIG. 4D, the current file number, of course, can be compared directlywith the file number threshold value. In addition, if the file numberexceeds a number of five figures, the file name may be generated basedon lower file figures of that file number. For example, a file whosefile number is 110010, is AUT10010.JPG, THM10010.JPG, SDN10010.WAV, andits directory is ¥CTG02200.

According to the invention as described above, in the system such thatthe file names are sequentially formed by, for instance, including thenumerical values in the ascending or descending order into the filenames, by preparing the counter to hold the numerical values to beincluded in the file names, even if the power source of the image pickupapparatus is turned on/off or the recording medium is exchanged, so longas the image data is recorded by the same image pickup apparatus, thepeculiar file name which is not overlapped can be formed for therecording image data and a situation such that a plurality of files ofthe same name exist can be prevented.

By displaying a warning message and a method of taking a countermeasureas an exception process when the value of the counter lies within acertain range, even in the case where the numerical values arecirculated once and the same file name is formed, a situation such thatthe file is overwritten and the data is deleted can be prevented.

Further, by classifying the files into appropriate directories andstoring the classified files, time required by the file system to searchthe existing files to determine a new file name can be shortened. Forexample, when the kNumObjInDir described in the embodiment ispredetermined as 50, the number of files stored in one directory is 150at the maximum. Specifically, when a 1000-th image is recorded bysearching the file names of the other recorded images to detect whetherthe same file name exists or not, only directory entry for 20directories and 147 files at the maximum has to be searched comparedwith when 1000 images are stored in one directory. Therefore, timerequired to determine the new file name can be reduced to less thanone-fifth. This search can be executed by a CPU of 80C86 8 MHz withinone second and thus is of enough practical use. In addition, by settingthe kNumObjInDir as 50, relationship between the directory number andthe file number can be easily calculated by a person and thus easilyrecognized by him.

Many widely different embodiments of the present invention may beconstructed without departing from the spirit and scope of the presentinvention. It should be understood that the present invention is notlimited to the specific embodiments described in the specification,except as defined in the appended claims.

1. A file management system for managing image data as an image datafile stored in a directory, wherein said image data is generated by animage pickup apparatus, comprising: a file generator that generates anadditional data file related to the image data file but other than theimage data file so that the additional data file and the image data filehave a same numeral file number and a different extension in thedirectory; and a file manager that manages the additional data file andthe image data file having the same numeral file number as theadditional data file, as one object in the directory on the basis of thesame numeral file number so that the file manager performs directorymanagement operations on the object itself as one data unit, whereinsaid file manager is arranged to delete together the additional datafile and image data file having the same file number as the additionaldata file, as one object in such a manner that the file manager deletesnone of the additional data file and the image data file having the samenumber as the additional data file, in a case where at least one of theadditional data file and the image data file having the same number asthe additional data file has a protection attribute.
 2. A systemaccording to claim 1, wherein the object is managed so that deletion ofthe object from an application in one of said image pickup apparatus anda computer is inhibited in a case where either one of the image file andthe additional data file included in the object has a protectionattribute, even if both of the image file and the additional data filedo not have a protection attribute.
 3. A file management method ofmanaging image data as an image data file stored in a directory, whereinsaid image data is generated by an image pickup apparatus, comprising: afile generation step of generating an additional data file related tothe image data file but other than the image data file so that theadditional data file and the image data file are generated in said imagepickup apparatus and have a same numeral file number and a differentextension in the directory; and a file managing step of managing with afile manager, the additional data file and the image data file havingthe same numeral file number as the additional data file, as one objectin the directory on the basis of the same numeral file number so thatthe file manager performs directory management operations on the objectitself as one data unit, wherein said file managing step is arranged todelete together the additional data file and image data file having thesame file number as the additional data file, as one object in such amanner that the file managing step deletes none of the additional datafile and the image data file having the same number as the additionaldata file, in a case where at least one of the additional data file andthe image data file having the same number as the additional data filehas a protection attribute.
 4. A method according to claim 3, whereinthe object is managed so that deletion of the object from an applicationin one of said image pickup apparatus and a computer is inhibited in acase where either one of the image file and the additional data fileincluded in the object has a protection attribute, even if both of theimage file and the additional data file do not have a protectionattribute.
 5. A non-transitory computer-readable recording mediumstoring a computer-executable program, said computer-executable programbeing executable by a computer so as to control the computer to executea file management process of managing image data as an image data filestored in a directory, wherein said image data is generated by an imagepickup apparatus, said computer-executable program including programcode comprising: code for executing a file generating process ofgenerating an additional data file related to the image data file butother than the image data file so that the additional data file and theimage data file are generated in said image pickup apparatus and have asame numeral file number and a different extension in the directory; andcode for executing a file managing process of managing, with a filemanager, the additional data file and the image data file having thesame numeral file number as the additional data file, as one object inthe directory on the basis of the same numeral file number so that thefile manager performs directory management operations on the objectitself as one data unit, wherein said file managing process is arrangedto delete together the additional data file and image data file havingthe same file number as the additional data file, as one object in sucha manner that the file management process deletes none of the additionaldata file and the image data file having the same number as theadditional data file, in a case where at least one of the additionaldata file and the image data file having the same number as theadditional data file has a protection attribute.
 6. A medium accordingto claim 5, wherein said file management process includes a process ofmanaging the object so that deletion of the object from an applicationin one of said image pickup apparatus and a computer is inhibited in acase where either one of the image file and the additional data fileincluded in the object has a protection attribute, even if both of theimage file and the additional data file do not have a protectionattribute.
 7. An image pickup apparatus for use with a file managementsystem for managing image data as an image data file stored in adirectory, wherein said image data is generated by said image pickupapparatus, said image pickup apparatus comprising: a file generator thatgenerates an additional data file related to the image data file butother than the image data file so that the additional data file and theimage data file are generated in said image pickup apparatus and have asame numeral file number and a different extension in the directory; anda file manager that manages the additional data file and the image datafile having the same numeral file number as the additional data file, asone object in the directory on the basis of the same numeral file numberso that the file manager performs directory management operations on theobject itself as one data unit, wherein said file manager is arranged todelete together the additional data file and image data file having thesame file number as the additional data file, as one object in such amanner that the file manager deletes none of the additional data fileand the image data file having the same number as the additional datafile, in a case where at least one of the additional data file and theimage data file having the same number as the additional data file has aprotection attribute.
 8. An apparatus according to claim 7, wherein theobject is managed so that deletion of the object from an application inone of said image pickup apparatus and a computer is inhibited whereeither one of the image file and the additional data file included inthe object has a protection attribute, even if both of the image fileand the additional data file do not have a protection attribute.